package com.example.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 学生表
 * </p>
 *
 * @author wk
 * @since 2025-04-02
 */
@Data
@TableName("student")  //表名称
public class Student implements Serializable  {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    private Integer id;

    //"姓名"
    @NotBlank(message = "姓名不能为空")
    private String name;

    // "年龄"
    private Integer age;

    // "性别"
    private String sex;

    // "班级"
    private String classRoom;

    // "家庭住址"
    private String address;



}
